import React from 'react';
import { Button } from 'antd';
import { withRouter } from 'react-router-dom';
class HomeIndex extends React.Component {
  render() {
    return (
      <div>
        <h1>我是用户页面</h1>
        <Button onClick={() => this.props.history.push('/user/button')}>进入用户子页面</Button>
        <Button onClick={() => this.props.history.push('/')} type="primary">
          退出登录
        </Button>
      </div>
    );
  }
}

export default HomeIndex;
